package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.UserSaveClientFallback;
import com.zqh.myfmmall.result.Result;
import com.zqh.myfmmall.rowbeans.entity.Users;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-02-19 22:23
 */
@FeignClient(value = "user-save",fallbackFactory = UserSaveClientFallback.class)
public interface UserSaveClient{
    @PostMapping("user/create")
    Result saveUser(@RequestBody Users user);
}
